import java.util.List;

public class Main {
    public static void main(String[] args) {
        //买扑克牌
        CardDemo cardDemo = new CardDemo();
        List<Card> cards = cardDemo.buyCard();
        System.out.println(cards);
        //打乱扑克牌
        cardDemo.shuffle(cards);
        System.out.println(cards);
        //发扑克牌 3个人 5轮
        List<List<Card>> ret = cardDemo.play(cards);
        for (List<Card> l : ret) {
            for (Card c : l) {
                System.out.print(c + " ");
            }
            System.out.println();
        }

    }
}